package com.zytool.easyrestful.demo.exception;

import com.zytool.easyrestful.core.bean.ResultStatus;

public enum ResultStatusEnum implements ResultStatus {

    SUCCESS(0, "success"),
    ;

    private int code;

    private String message;

    ResultStatusEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
